﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using P2PChat.Data;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;

namespace P2PChat.Net
{
    public class PacketSender
    {
        public bool SendPacket(NetPacket pack_Send)
        {
            MemoryStream ms = new MemoryStream();
            BinaryFormatter bf = new BinaryFormatter();
            bf.Serialize(ms, pack_Send);

            using (System.Net.Sockets.TcpClient client = new System.Net.Sockets.TcpClient())
            {

            }
        }

        public bool SendPacket(NetPacket pack_Send, out NetPacket pack_Recv)
        {
            MemoryStream ms = new MemoryStream();
            BinaryFormatter bf = new BinaryFormatter();
            bf.Serialize(ms, pack_Send);

            using (System.Net.Sockets.TcpClient client = new System.Net.Sockets.TcpClient())
            {

            }
        }

        
    }
}
